package com.wangijun.yuan.core.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serial;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文章标签映射表
 */
@Schema(description = "文章标签映射表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "map_article_tag")
public class MapArticleTag implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 文章ID
     */
    @TableField(value = "article_id")
    @Schema(description = "文章ID")
    private Long articleId;

    /**
     * 标签ID
     */
    @TableField(value = "tag_id")
    @Schema(description = "标签ID")
    private Long tagId;
    @Serial
    private static final long serialVersionUID = 1L;
}